<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Mosaddek">
    <meta name="keyword" content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
    <link rel="shortcut icon" href="img/favicon.png">

    <title>Todo List</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url() ?>Resources/Admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url() ?>Resources/Admin/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="<?php echo base_url() ?>Resources/Admin/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <link href="<?php echo base_url() ?>Resources/Admin/css/tasks.css" rel="stylesheet">

      <!-- Custom styles for this template -->
    <link href="<?php echo base_url() ?>Resources/Admin/css/style.css" rel="stylesheet">
    <link href="<?php echo base_url() ?>Resources/Admin/css/style-responsive.css" rel="stylesheet" />

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->




  </head>

  <body>

  <section id="container" class="">
      <!--header start-->
      <header class="header white-bg">
          <?php $this->load->view('admin_layout/header') ?>
      </header>
      <!--header end-->
      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
                <?php $this->load->view('admin_layout/sidebar') ?>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper">
              <!-- page start-->
              <div class="row">  <div class="col-md-12">
                <div class=" add-task-row">
                                  <a href="#myModal_them" data-toggle="modal" class="btn btn-success btn-sm pull-left">
                                    Add New Tasks
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_them" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Add New Tasks</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/add');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" class="form-control" id="tieude" name="tieude" placeholder="title" />
                                                  </div>
                                                  <div class="form-group">
                                                  <label for="account">Đặt cho nhân viên</label>
                                                      <select id="account" class="form-control" name="account">
                                                      <option value="0" >None</option>
                                                            <?php //vòng for 
                                                            if(isset($nv)) {
                                                                foreach($nv as $n) {
                                                                ?>
                                                            <option value="<?php echo $n->ACCOUNT_ID ?>" ><?php echo $n->USERNAME.' . '.$n->FULL_NAME ?></option>
                                                            <?php  } } ?>
                                                          </select>
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" class="form-control" id="chitiet" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="date" class="form-control" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="date" class="form-control" name="to" />   </div>
												   <div class="form-group">
                                                  <label for="level">Level</label>
                                                      <select id="level" class="form-control" name="level">
                                                            <option value="1">Bình thường</option>
                                                            <option value="2">Gấp</option>
                                                            <option value="3">Quan trọng</option>
                                                            <option value="4">Rất quan trọng</option>
                                                      </select>
                                                  </div>
                                                 
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Thêm thành công')" class="btn btn-info">Xác nhận</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div> 
                          </div> </div>
              </div> <br />
              <div class="row">
              
                  <div class="col-md-12">
                  
                      <section class="panel tasks-widget">
                          <header class="panel-heading">
                              Các task mới
                          </header>
                          
                          <div class="panel-body">
                          
                              <div class="task-content">
                                    
                                  <ul class="task-list">
                                    <?php if(isset($news) && !empty($news))
                                    {
                                        foreach($news as $new)
                                        {
                                            
                                       ?>
                                      <li>
                                          <div class="task-title">
                                              <span class="task-title-sp"><?php echo $new->TASK_DETAILS ?></span>
                                               <span class="badge badge-sm label-info"><?php echo 'Deadline: '.$new->DEADLINE ?></span>
                                              <?php switch($new->Level)
                                              {
                                                case 1: echo '<span class="badge badge-sm label-success">'.'Bình thường</span>'; break;
                                                case 2: echo '<span class="badge badge-sm label-primary">Cần gấp</span>'; break;
                                                case 3: echo '<span class="badge badge-sm label-warning">Quan trọng</span>'; break;
                                                case 4: echo '<span class="badge badge-sm label-danger">Rất quan trọng</span>'; break;
                                              }
                                              
                                               ?>
                                                
                                              <div class="pull-right hidden-phone">
                                                    
                                                  <a href="#myModal_nhan_<?php echo $new->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-success btn-xs">
                                   Nhận việc
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_nhan_<?php echo $new->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Nhận công việc</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/accept');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" readonly class="form-control" id="tieude" name="tieude" value="<?php echo $new->TASK_TITLE ?>" placeholder="title" />
                                                  </div>
                                                    <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" readonly class="form-control" id="chitiet" value="<?php echo $new->TASK_DETAILS ?>" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="text" readonly class="form-control" value="<?php echo $new->START_DATE ?>" placeholder="bắt đầu" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="text" readonly class="form-control" value="<?php echo $new->DEADLINE ?>" name="to" placeholder="deadline"  />  </div>
												   <div class="form-group">
                                                  
                                                                   <?php switch($new->Level)
                                                          {
                                                            case 1: echo '<span class="badge badge-sm label-success">'.'Bình thường</span>'; break;
                                                            case 2: echo '<span class="badge badge-sm label-primary">Cần gấp</span>'; break;
                                                            case 3: echo '<span class="badge badge-sm label-warning">Quan trọng</span>'; break;
                                                            case 4: echo '<span class="badge badge-sm label-danger">Rất quan trọng</span>'; break;
                                                          }
                                                          
                                                           ?>
                                                  </div>
                                                 <input type="hidden" name="id_task" value="<?php echo $new->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Đã nhận')" class="btn btn-info">Nhận việc này</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>
                              
                                    <?php if($this->session->userdata('role') == 1) { ?>
                              
                              
                                                  <a href="#myModal_update_<?php echo $new->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-primary btn-xs">
                                        Chỉnh sửa
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_update_<?php echo $new->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Sửa công việc</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/edit');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" class="form-control" value="<?php echo $new->TASK_TITLE ?>" id="tieude" name="tieude" placeholder="title" />
                                                  </div>
                                                  <div class="form-group">
                                                  <label for="account">Đặt cho nhân viên</label>
                                                      <select id="account" class="form-control" name="account">
                                                      <option value="0" >None</option>
                                                            <?php //vòng for 
                                                            if(isset($nv)) {
                                                                foreach($nv as $n) {
                                                                ?>
                                                            <option <?php if($new->ACCOUNT_ID == $n->ACCOUNT_ID) echo "selected=selected"; ?> value="<?php echo $n->ACCOUNT_ID ?>" ><?php echo $n->USERNAME.' . '.$n->FULL_NAME ?></option>
                                                            <?php  } } ?>
                                                          </select>
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" class="form-control" value="<?php echo $new->TASK_DETAILS ?>" id="chitiet" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="date" class="form-control" value="<?php echo $new->START_DATE ?>" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="date" class="form-control" value="<?php echo $new->DEADLINE ?>" name="to" />   </div>
												   <div class="form-group">
                                                  <label for="level">Level</label>
                                                      <select id="level" class="form-control" name="level">
                                                            <option <?php if($new->Level == 1) echo "selected=selected"; ?> value="1">Bình thường</option>
                                                            <option <?php if($new->Level == 2) echo "selected=selected"; ?> value="2">Gấp</option>
                                                            <option <?php if($new->Level == 3) echo "selected=selected"; ?> value="3">Quan trọng</option>
                                                            <option <?php if($new->Level == 4) echo "selected=selected"; ?> value="4">Rất quan trọng</option>
                                                      </select>
                                                  </div>
                                                    <input type="hidden" name="id_task" value="<?php echo $new->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Cập nhật thành công')" class="btn btn-info">Xác nhận</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>
                                                  
                                                  
                                  <a href="#myModal_xoa_<?php echo $new->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-danger btn-xs">
                                   Xóa việc
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_xoa_<?php echo $new->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Xóa công việc</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/finish');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" readonly class="form-control" id="tieude" name="tieude" value="<?php echo $new->TASK_TITLE ?>" placeholder="title" />
                                                  </div>
                                                    <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" readonly class="form-control" id="chitiet" value="<?php echo $new->TASK_DETAILS ?>" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="text" readonly class="form-control" value="<?php echo $new->START_DATE ?>" placeholder="bắt đầu" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="text" readonly class="form-control" value="<?php echo $new->DEADLINE ?>" name="to" placeholder="deadline"  />  </div>
												   <div class="form-group">
                                                  
                                                                   <?php switch($new->Level)
                                                          {
                                                            case 1: echo '<span class="badge badge-sm label-success">'.'Bình thường</span>'; break;
                                                            case 2: echo '<span class="badge badge-sm label-primary">Cần gấp</span>'; break;
                                                            case 3: echo '<span class="badge badge-sm label-warning">Quan trọng</span>'; break;
                                                            case 4: echo '<span class="badge badge-sm label-danger">Rất quan trọng</span>'; break;
                                                          }
                                                          
                                                           ?>
                                                  </div>
                                                 <input type="hidden" name="id_task" value="<?php echo $new->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Đã xóa')" class="btn btn-danger">Xóa việc</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>                
                                                  
                                                  
                                                     <?php } ?>
                                              </div>
                                          </div>
                                      </li> 
                                        <?php    }
                                    } ?>                              
                                  </ul>
                              </div>

                                
                       </div>
                      </section>
                  </div>
              </div>
                            <div class="row">
                                <div class="col-lg-12">
                                        <section class="panel tasks-widget">
                                  <header class="panel-heading">
                                      Task đang xử lý
                                  </header>
                                  <div class="panel-body">
                              <div class="task-content">

                                  <ul class="task-list">
                                    <?php if(isset($news_old) && !empty($news_old))
                                    {
                                        foreach($news_old as $old)
                                        {
                                            
                                       ?>
                                      <li>
                                          <div class="task-title">
                                              <span class="task-title-sp"><?php echo $old->TASK_DETAILS ?></span>
                                               <span class="badge badge-sm label-info"><?php echo 'Deadline: '.$old->DEADLINE ?></span>
                                              <span class="badge badge-sm label-primary">Nhân viên nhận : <?php $man = $this->m_account->get_account_by_id($old->ACCOUNT_ID);
                                                                
                                                                     echo $man->USERNAME.' . '.$man->FULL_NAME ?>
                                              
                                               </span>
                                                
                                              <div class="pull-right hidden-phone">
                                                      <!-- xong việc  -->
                                                    <a href="#myModal_xong_<?php echo $old->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-success btn-xs">
                                            Xác nhận xong
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_xong_<?php echo $old->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Xác nhận xong</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/finish');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" readonly class="form-control" id="tieude" name="tieude" value="<?php echo $old->TASK_TITLE ?>" placeholder="title" />
                                                  </div>
                                                    <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" readonly class="form-control" id="chitiet" value="<?php echo $old->TASK_DETAILS ?>" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="text" readonly class="form-control" value="<?php echo $old->START_DATE ?>" placeholder="bắt đầu" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="text" readonly class="form-control" value="<?php echo $old->DEADLINE ?>" name="to" placeholder="deadline"  />  </div>
												   <div class="form-group">
                                                  
                                                                   <?php switch($old->Level)
                                                          {
                                                            case 1: echo '<span class="badge badge-sm label-success">'.'Bình thường</span>'; break;
                                                            case 2: echo '<span class="badge badge-sm label-primary">Cần gấp</span>'; break;
                                                            case 3: echo '<span class="badge badge-sm label-warning">Quan trọng</span>'; break;
                                                            case 4: echo '<span class="badge badge-sm label-danger">Rất quan trọng</span>'; break;
                                                          }
                                                          
                                                           ?>
                                                  </div>
                                                 <input type="hidden" name="id_task" value="<?php echo $old->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Đã xong công việc này')" class="btn btn-info">Xác nhận xong ?</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>
                                                    <!-- xong việc  -->
                                                     <?php if($this->session->userdata('role') == 1) { ?>
                                                  <a href="#myModal_update2_<?php echo $old->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-primary btn-xs">
                                   Chỉnh sửa
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_update2_<?php echo $old->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Sửa công việc</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/edit');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" class="form-control" value="<?php echo $old->TASK_TITLE ?>" id="tieude" name="tieude" placeholder="title" />
                                                  </div>
                                                  <div class="form-group">
                                                  <label for="account">Đặt cho nhân viên</label>
                                                      <select id="account" class="form-control" name="account">
                                                      <option value="0" >None</option>
                                                            <?php //vòng for 
                                                            if(isset($nv)) {
                                                                foreach($nv as $n) {
                                                                ?>
                                                            <option <?php if($old->ACCOUNT_ID == $n->ACCOUNT_ID) echo "selected=selected"; ?> value="<?php echo $n->ACCOUNT_ID ?>" ><?php echo $n->USERNAME.' . '.$n->FULL_NAME ?></option>
                                                            <?php  } } ?>
                                                          </select>
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" class="form-control" value="<?php echo $old->TASK_DETAILS ?>" id="chitiet" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="date" class="form-control" value="<?php echo $old->START_DATE ?>" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="date" class="form-control" value="<?php echo $old->DEADLINE ?>" name="to" />   </div>
												   <div class="form-group">
                                                  <label for="level">Level</label>
                                                      <select id="level" class="form-control" name="level">
                                                            <option <?php if($old->Level == 1) echo "selected=selected"; ?> value="1">Bình thường</option>
                                                            <option <?php if($old->Level == 2) echo "selected=selected"; ?> value="2">Gấp</option>
                                                            <option <?php if($old->Level == 3) echo "selected=selected"; ?> value="3">Quan trọng</option>
                                                            <option <?php if($old->Level == 4) echo "selected=selected"; ?> value="4">Rất quan trọng</option>
                                                      </select>
                                                  </div>
                                                     <input type="hidden" name="id_task" value="<?php echo $old->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Cập nhật thành công')" class="btn btn-info">Xác nhận</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>
                                               
                                        <a href="#myModal_xoa2_<?php echo $old->TODO_LIST_ID ?>" data-toggle="modal" class="btn btn-danger btn-xs">
                                   Xóa việc
                                         </a>  
                                         <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal_xoa2_<?php echo $old->TODO_LIST_ID ?>" class="modal fade">
                                  <div class="modal-dialog">
                                      <div class="modal-content">
                                          <div class="modal-header">
                                              <button aria-hidden="true" data-dismiss="modal" class="close" type="button">X</button>
                                              <h4 class="modal-title">Xóa công việc</h4>
                                          </div>
                                          <div class="modal-body">
                                            <form action="<?php
                                                          echo base_url('todolist/finish');
                                                          ?>" method="POST" role="form">
                                                          
                                                  <div class="form-group">
                                                      <label for="tieude">Tiêu đề: </label>
                                                      <input type="text" readonly class="form-control" id="tieude" name="tieude" value="<?php echo $old->TASK_TITLE ?>" placeholder="title" />
                                                  </div>
                                                    <div class="form-group">
                                                      <label for="chitiet">Chi tiết: </label>
                                                      <input type="text" readonly class="form-control" id="chitiet" value="<?php echo $old->TASK_DETAILS ?>" name="chitiet" placeholder="details" />
                                                  </div>
												   <div class="form-group">  
												   <input type="text" readonly class="form-control" value="<?php echo $old->START_DATE ?>" placeholder="bắt đầu" name="from" />
                                                   <span class="input-group-addon">Đến</span>
                                                   <input type="text" readonly class="form-control" value="<?php echo $old->DEADLINE ?>" name="to" placeholder="deadline"  />  </div>
												   <div class="form-group">
                                                  
                                                                   <?php switch($old->Level)
                                                          {
                                                            case 1: echo '<span class="badge badge-sm label-success">'.'Bình thường</span>'; break;
                                                            case 2: echo '<span class="badge badge-sm label-primary">Cần gấp</span>'; break;
                                                            case 3: echo '<span class="badge badge-sm label-warning">Quan trọng</span>'; break;
                                                            case 4: echo '<span class="badge badge-sm label-danger">Rất quan trọng</span>'; break;
                                                          }
                                                          
                                                           ?>
                                                  </div>
                                                 <input type="hidden" name="id_task" value="<?php echo $old->TODO_LIST_ID  ?>" />
                                                   <input type="hidden" name="url1" value="<?php echo current_url() ?>" />
                                                  <button type="submit" name="luu" value="luu" onClick="alert('Đã xóa')" class="btn btn-danger">Xóa việc</button>
                                              </form>

                                          </div>

                                      </div>
      
                                  
                              </div> </div>            
                                               
                                               
                                                   <?php } ?>
                                              </div>
                                          </div>
                                      </li> 
                                        <?php    }
                                    } ?>                              
                                  </ul>
                              </div>
                            </div> </section>
                              </div>
                          </div>
              

              <!-- page end-->
          </section>
      </section>
      <!--main content end-->
      <!--footer start-->
      <footer class="site-footer">
          <?php $this->load->view('admin_layout/footer') ?>
      </footer>
      <!--footer end-->
  </section>

    <!-- js placed at the end of the document so the pages load faster -->
    <script src="<?php echo base_url() ?>Resources/Admin/js/jquery.js"></script>
    <script src="<?php echo base_url() ?>Resources/Admin/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="<?php echo base_url() ?>Resources/Admin/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="<?php echo base_url() ?>Resources/Admin/js/jquery.scrollTo.min.js"></script>
    <script src="<?php echo base_url() ?>Resources/Admin/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="<?php echo base_url() ?>Resources/Admin/js/respond.min.js" ></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>


    <!--common script for all pages-->
    <script src="<?php echo base_url() ?>Resources/Admin/js/common-scripts.js"></script>
    <script src="<?php echo base_url() ?>Resources/Admin/js/tasks.js" type="text/javascript"></script>




    <script>
      jQuery(document).ready(function() {
          TaskList.initTaskWidget();
      });

      $(function() {
          $( "#sortable" ).sortable();
          $( "#sortable" ).disableSelection();
      });

    </script>

  </body>
</html>